<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Simulador de Sistemas Dinâmicos: Referência da Classe vetor</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="http://www.mathjax.org/mathjax/MathJax.js"></script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Simulador de Sistemas Dinâmicos
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Conjunto de códigos utilizados para as simulações da minha dissertação</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Gerado por Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Busca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;Principal</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Arquivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Busca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Lista&#160;de&#160;Componentes</span></a></li>
      <li><a href="classes.html"><span>Índice&#160;dos&#160;Componentes</span></a></li>
      <li><a href="functions.html"><span>Componentes&#160;Membros</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Métodos Públicos</a> &#124;
<a href="#pri-attribs">Atributos Privados</a>  </div>
  <div class="headertitle">
<div class="title">Referência da Classe vetor</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="vetor" -->
<p>Classe para operações vetoriais diversas.  
 <a href="classvetor.html#details">Mais...</a></p>

<p><code>#include &quot;<a class="el" href="">vetor.hpp</a>&quot;</code></p>

<p><a href="classvetor-members.html">Lista de todos os Membros.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Métodos Públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a6c0f925ad7cc531beda9f55fc6b713df">vetor</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor default.  <a href="#a6c0f925ad7cc531beda9f55fc6b713df"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#ade1e8ff349d54e2750a8b527edc304f3">~vetor</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destrutor.  <a href="#ade1e8ff349d54e2750a8b527edc304f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#add368c9cbf150cf9f9fa62a634e5bc31">vetor</a> (int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor 00, define apenas a quantidade de elementos do vetor.  <a href="#add368c9cbf150cf9f9fa62a634e5bc31"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a303928ed323d407fa809c890c0c88c55">vetor</a> (int, bool)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor 01, define apenas a quantidade de elementos e se o vetor é linha ou coluna.  <a href="#a303928ed323d407fa809c890c0c88c55"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#ad950463ccfb4dad631e668f278c4c93a">vetor</a> (double *, int, bool)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor 02, faz o mesmo que o 01 e inicializa v com base num array.  <a href="#ad950463ccfb4dad631e668f278c4c93a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#ab38319f0b1fb0a08967a6cdda74cae86">vetor</a> (valarray&lt; double &gt;, bool)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor 03, faz o mesmo que o 01, e inicializa v com base num valarray.  <a href="#ab38319f0b1fb0a08967a6cdda74cae86"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a7fdb37c78d791c923e4b66e0cd2b5b4d">vetor</a> (const <a class="el" href="classvetor.html">vetor</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor de cópia.  <a href="#a7fdb37c78d791c923e4b66e0cd2b5b4d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#ab28dcf106d59fe8230b782ca01ed08da">setNull</a> (int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Anula os primeiros \( k \) elementos do vetor.  <a href="#ab28dcf106d59fe8230b782ca01ed08da"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#aeb089eac0b9cc9dbff35ab065cea2fb1">show</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Exibe os elementos do vetor.  <a href="#aeb089eac0b9cc9dbff35ab065cea2fb1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a79ad36e7e4d8f188c8997dd785cf2dcc">set</a> (int, bool)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Igual ao construtor 01, mas v é inserido diretamente pelo usuário em tempo de execução.  <a href="#a79ad36e7e4d8f188c8997dd785cf2dcc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a695c3105c889809a09d210e0a8b16e5e">norma</a> (int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Calcula a norma \( i \) do vetor.  <a href="#a695c3105c889809a09d210e0a8b16e5e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a6f6ecb4c637752ce4eb280d34d626a54">normaInf</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Calcula a norma infinita do vetor.  <a href="#a6f6ecb4c637752ce4eb280d34d626a54"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#aead9a92bb6204813a59b007719b1a318">retDim</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna a dimensão do vetor.  <a href="#aead9a92bb6204813a59b007719b1a318"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a948720e857740d4e8cb337e05298ea64">retTr</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna o tipo do vetor, linha ou coluna.  <a href="#a948720e857740d4e8cb337e05298ea64"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classvetor.html">vetor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#af639bf719300f08199946e555e842686">minivec</a> (int, int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna um vetor igual ao original indo da linha \( a \) a \( b \) , \( v_{a:b} \).  <a href="#af639bf719300f08199946e555e842686"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classvetor.html">vetor</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a6bd7704303d34458431b227a3791560b">operator+=</a> (const <a class="el" href="classvetor.html">vetor</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna a soma entre dois vetores, armazenando o resultado no primeiro deles.  <a href="#a6bd7704303d34458431b227a3791560b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classvetor.html">vetor</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a7cb658694fdcc7d9e97a332af4e6156d">operator=</a> (const <a class="el" href="classvetor.html">vetor</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Operador de atribuição, torna um vetor igual ao outro \( a = b \).  <a href="#a7cb658694fdcc7d9e97a332af4e6156d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classvetor.html">vetor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#af9e82bf75f6b7c92305b6867b634bae9">operator-</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna o inverso aditivo do vetor: \( -v \).  <a href="#af9e82bf75f6b7c92305b6867b634bae9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#adf230eb7521c13accc45fc0ddca4f13f">operator()</a> (int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna o i-ésimo elemento do vetor: \( v_i \).  <a href="#adf230eb7521c13accc45fc0ddca4f13f"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Atributos Privados</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a8363ac8288f5c414e85dee6a5806c639">dim</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Dimensão do vetor, a quantidade de elementos.  <a href="#a8363ac8288f5c414e85dee6a5806c639"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#ab0d1739b36fe562414eea0fdae94061a">trp</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Indica se o vetor é transposto ou não.  <a href="#ab0d1739b36fe562414eea0fdae94061a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">valarray&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvetor.html#a2bdb0bdaffb69a3a36b19aa78971ee5d">v</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Estrutura de dados que armazena os elementos do vetor.  <a href="#a2bdb0bdaffb69a3a36b19aa78971ee5d"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Descrição Detalhada</h2>
<div class="textblock"><p>Classe para operações vetoriais diversas. </p>

<p>Definição na linha <a class="el" href="#L24">24</a> do arquivo <a class="el" href="">vetor.hpp</a>.</p>
</div><hr/><h2>Construtores &amp; Destrutores</h2>
<a class="anchor" id="a6c0f925ad7cc531beda9f55fc6b713df"></a><!-- doxytag: member="vetor::vetor" ref="a6c0f925ad7cc531beda9f55fc6b713df" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html#a6c0f925ad7cc531beda9f55fc6b713df">vetor::vetor</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor default. </p>
<p>Contrutor default. </p>

<p>Definição na linha <a class="el" href="#L10">10</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ade1e8ff349d54e2750a8b527edc304f3"></a><!-- doxytag: member="vetor::~vetor" ref="ade1e8ff349d54e2750a8b527edc304f3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html#ade1e8ff349d54e2750a8b527edc304f3">vetor::~vetor</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destrutor. </p>
<p>Destrutor default. </p>

<p>Definição na linha <a class="el" href="#L12">12</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="add368c9cbf150cf9f9fa62a634e5bc31"></a><!-- doxytag: member="vetor::vetor" ref="add368c9cbf150cf9f9fa62a634e5bc31" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html#a6c0f925ad7cc531beda9f55fc6b713df">vetor::vetor</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor 00, define apenas a quantidade de elementos do vetor. </p>

<p>Definição na linha <a class="el" href="#L14">14</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a303928ed323d407fa809c890c0c88c55"></a><!-- doxytag: member="vetor::vetor" ref="a303928ed323d407fa809c890c0c88c55" args="(int, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html#a6c0f925ad7cc531beda9f55fc6b713df">vetor::vetor</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor 01, define apenas a quantidade de elementos e se o vetor é linha ou coluna. </p>

<p>Definição na linha <a class="el" href="#L16">16</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad950463ccfb4dad631e668f278c4c93a"></a><!-- doxytag: member="vetor::vetor" ref="ad950463ccfb4dad631e668f278c4c93a" args="(double *, int, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html#a6c0f925ad7cc531beda9f55fc6b713df">vetor::vetor</a> </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>vv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor 02, faz o mesmo que o 01 e inicializa v com base num array. </p>
<dl class="params"><dt><b>Parâmetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vv</td><td>Array contendo os elementos do vetor a ser criado </td></tr>
    <tr><td class="paramname">dd</td><td>Dimensão do vetor a ser criado </td></tr>
    <tr><td class="paramname">ff</td><td>Tipo do vetor, linha ou coluna </td></tr>
  </table>
  </dd>
</dl>

<p>Definição na linha <a class="el" href="#L21">21</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab38319f0b1fb0a08967a6cdda74cae86"></a><!-- doxytag: member="vetor::vetor" ref="ab38319f0b1fb0a08967a6cdda74cae86" args="(valarray&lt; double &gt;, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html#a6c0f925ad7cc531beda9f55fc6b713df">vetor::vetor</a> </td>
          <td>(</td>
          <td class="paramtype">valarray&lt; double &gt;&#160;</td>
          <td class="paramname"><em>vv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor 03, faz o mesmo que o 01, e inicializa v com base num valarray. </p>

<p>Definição na linha <a class="el" href="#L33">33</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7fdb37c78d791c923e4b66e0cd2b5b4d"></a><!-- doxytag: member="vetor::vetor" ref="a7fdb37c78d791c923e4b66e0cd2b5b4d" args="(const vetor &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html#a6c0f925ad7cc531beda9f55fc6b713df">vetor::vetor</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classvetor.html">vetor</a> &amp;&#160;</td>
          <td class="paramname"><em>q</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor de cópia. </p>

<p>Definição na linha <a class="el" href="#L39">39</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<hr/><h2>Métodos</h2>
<a class="anchor" id="af639bf719300f08199946e555e842686"></a><!-- doxytag: member="vetor::minivec" ref="af639bf719300f08199946e555e842686" args="(int, int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html">vetor</a> <a class="el" href="classvetor.html#af639bf719300f08199946e555e842686">vetor::minivec</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna um vetor igual ao original indo da linha \( a \) a \( b \) , \( v_{a:b} \). </p>

<p>Definição na linha <a class="el" href="#L266">266</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a695c3105c889809a09d210e0a8b16e5e"></a><!-- doxytag: member="vetor::norma" ref="a695c3105c889809a09d210e0a8b16e5e" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classvetor.html#a695c3105c889809a09d210e0a8b16e5e">vetor::norma</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Calcula a norma \( i \) do vetor. </p>
<dl class="params"><dt><b>Parâmetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>Norma desejada </td></tr>
  </table>
  </dd>
</dl>

<p>Definição na linha <a class="el" href="#L81">81</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6f6ecb4c637752ce4eb280d34d626a54"></a><!-- doxytag: member="vetor::normaInf" ref="a6f6ecb4c637752ce4eb280d34d626a54" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classvetor.html#a6f6ecb4c637752ce4eb280d34d626a54">vetor::normaInf</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Calcula a norma infinita do vetor. </p>

<p>Definição na linha <a class="el" href="#L95">95</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adf230eb7521c13accc45fc0ddca4f13f"></a><!-- doxytag: member="vetor::operator()" ref="adf230eb7521c13accc45fc0ddca4f13f" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double &amp; vetor::operator() </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna o i-ésimo elemento do vetor: \( v_i \). </p>

<p>Definição na linha <a class="el" href="#L169">169</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6bd7704303d34458431b227a3791560b"></a><!-- doxytag: member="vetor::operator+=" ref="a6bd7704303d34458431b227a3791560b" args="(const vetor &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html">vetor</a> &amp; vetor::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classvetor.html">vetor</a> &amp;&#160;</td>
          <td class="paramname"><em>q</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna a soma entre dois vetores, armazenando o resultado no primeiro deles. </p>

<p>Definição na linha <a class="el" href="#L117">117</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af9e82bf75f6b7c92305b6867b634bae9"></a><!-- doxytag: member="vetor::operator&#45;" ref="af9e82bf75f6b7c92305b6867b634bae9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html">vetor</a> vetor::operator- </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna o inverso aditivo do vetor: \( -v \). </p>

<p>Definição na linha <a class="el" href="#L111">111</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7cb658694fdcc7d9e97a332af4e6156d"></a><!-- doxytag: member="vetor::operator=" ref="a7cb658694fdcc7d9e97a332af4e6156d" args="(const vetor &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvetor.html">vetor</a> &amp; vetor::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classvetor.html">vetor</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Operador de atribuição, torna um vetor igual ao outro \( a = b \). </p>

<p>Definição na linha <a class="el" href="#L97">97</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aead9a92bb6204813a59b007719b1a318"></a><!-- doxytag: member="vetor::retDim" ref="aead9a92bb6204813a59b007719b1a318" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classvetor.html#aead9a92bb6204813a59b007719b1a318">vetor::retDim</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna a dimensão do vetor. </p>

<p>Definição na linha <a class="el" href="#L180">180</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a948720e857740d4e8cb337e05298ea64"></a><!-- doxytag: member="vetor::retTr" ref="a948720e857740d4e8cb337e05298ea64" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classvetor.html#a948720e857740d4e8cb337e05298ea64">vetor::retTr</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna o tipo do vetor, linha ou coluna. </p>

<p>Definição na linha <a class="el" href="#L182">182</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a79ad36e7e4d8f188c8997dd785cf2dcc"></a><!-- doxytag: member="vetor::set" ref="a79ad36e7e4d8f188c8997dd785cf2dcc" args="(int, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classvetor.html#a79ad36e7e4d8f188c8997dd785cf2dcc">vetor::set</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Igual ao construtor 01, mas v é inserido diretamente pelo usuário em tempo de execução. </p>
<dl class="params"><dt><b>Parâmetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dd</td><td>Dimensão do vetor a ser criado </td></tr>
    <tr><td class="paramname">ff</td><td>Tipo do vetor, linha ou coluna </td></tr>
  </table>
  </dd>
</dl>

<p>Definição na linha <a class="el" href="#L65">65</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab28dcf106d59fe8230b782ca01ed08da"></a><!-- doxytag: member="vetor::setNull" ref="ab28dcf106d59fe8230b782ca01ed08da" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classvetor.html#ab28dcf106d59fe8230b782ca01ed08da">vetor::setNull</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Anula os primeiros \( k \) elementos do vetor. </p>

<p>Definição na linha <a class="el" href="#L43">43</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aeb089eac0b9cc9dbff35ab065cea2fb1"></a><!-- doxytag: member="vetor::show" ref="aeb089eac0b9cc9dbff35ab065cea2fb1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classvetor.html#aeb089eac0b9cc9dbff35ab065cea2fb1">vetor::show</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Exibe os elementos do vetor. </p>

<p>Definição na linha <a class="el" href="#L51">51</a> do arquivo <a class="el" href="">vetor.cpp</a>.</p>

</div>
</div>
<hr/><h2>Atributos</h2>
<a class="anchor" id="a8363ac8288f5c414e85dee6a5806c639"></a><!-- doxytag: member="vetor::dim" ref="a8363ac8288f5c414e85dee6a5806c639" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classvetor.html#a8363ac8288f5c414e85dee6a5806c639">vetor::dim</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Dimensão do vetor, a quantidade de elementos. </p>

<p>Definição na linha <a class="el" href="#L27">27</a> do arquivo <a class="el" href="">vetor.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab0d1739b36fe562414eea0fdae94061a"></a><!-- doxytag: member="vetor::trp" ref="ab0d1739b36fe562414eea0fdae94061a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classvetor.html#ab0d1739b36fe562414eea0fdae94061a">vetor::trp</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Indica se o vetor é transposto ou não. </p>

<p>Definição na linha <a class="el" href="#L28">28</a> do arquivo <a class="el" href="">vetor.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2bdb0bdaffb69a3a36b19aa78971ee5d"></a><!-- doxytag: member="vetor::v" ref="a2bdb0bdaffb69a3a36b19aa78971ee5d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">valarray&lt;double&gt; <a class="el" href="classvetor.html#a2bdb0bdaffb69a3a36b19aa78971ee5d">vetor::v</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Estrutura de dados que armazena os elementos do vetor. </p>

<p>Definição na linha <a class="el" href="#L29">29</a> do arquivo <a class="el" href="">vetor.hpp</a>.</p>

</div>
</div>
<hr/>A documentação para esta classe foi gerada a partir dos seguintes arquivos:<ul>
<li><a class="el" href="">vetor.hpp</a></li>
<li><a class="el" href="">vetor.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Arquivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definições e Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Gerado em Quinta, 20 de Dezembro de 2012 17:25:39 para Simulador de Sistemas Dinâmicos por &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
